package com.changgou.test;

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;

public class test02 {
    public static void main(String[] args) {
        String compactJwt = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI2NjYiLCJzdWIiOiLpl6rngasiLCJpYXQiOjE2MDU5NDI3ODgsImV4cCI6MTYwNTk0Mzc4O" +
                "Cwicm9sZXMiOiJhZG1pbiJ9.UxQIVYdpmjK0cWUk4pl_3I-v37-suTKTgwgdJNWb56M";

        Claims claims = Jwts.parser().setSigningKey("itcast").parseClaimsJws(compactJwt).getBody();
        System.out.println(claims);
    }
}
